package demo7;

import java.util.Comparator;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 */
public class AgeComparatorDesc implements Comparator<Student> {
    @Override
    public int compare(Student o1, Student o2) {
        return  o2.age -o1.age ;
    }
}
